-- GENERATED SPELL FOR [Void Waste] --


function spell0_20778(pUnit, Event) --@Toxic Burst,Self--
pUnit:FullCastSpellOnTarget(36519,pUnit)
pUnit:RegisterEvent('Sorts_20778', 33000, 1)
end

function Sorts_20778(pUnit, Event)
local choix_sorts_20778 = math.random(0, 0)
if choix_sorts_20778 == 0 then
pUnit:RegisterEvent('spell0_20778', 1, 1)
end
end

function mob20778_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20778', math.random(1500, 3000), 1)
end

function mob20778_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20778_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20778_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20778, 1, 'mob20778_Action')
RegisterUnitEvent(20778, 2, 'mob20778_Leave')
RegisterUnitEvent(20778, 3, 'mob20778_Kill')
RegisterUnitEvent(20778, 4, 'mob20778_Die')
